package Arr;

public class ordered {
    public static void order(int[]arr){
        boolean falg=false;
        for (int i = 0; i < arr.length-1; i++) {
            for (int j = 0; j < arr.length-1-i; j++) {
                if (arr[i]>arr[i+1]){
                falg=true;
            }
                else {
                    System.out.println("这个数组不是有序的");
                }

        }

    }
}}
